package com.example.api;

import com.example.api.entity.Coffee;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(url = "http://localhost",name = "CoffApi")
@Component
public interface CoffApi {


    @GetMapping("/cof/list")
    public List<Coffee> getList ();
}
